package com.csnf.student.service.impl;

import com.csnf.student.dao.StudentDao;
import com.csnf.student.dao.impl.StudentDaoImpl;
import com.csnf.student.entity.Student;
import com.csnf.student.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {
    StudentDao studentDao = new StudentDaoImpl() ;
    @Override
    public void addStudent(Student student) throws Exception {
        studentDao.addStudent(student);
    }
    @Override
    public List<Student> getAll(){
        return studentDao.getAll();
    }
}
